package com.atguigu04.override;

/**
 * ClassName: ExtendsTest
 * Package: com.atguigu04.override
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/21 16:09
 * @Version 1.0
 */
public class ExtendsTest {
    public static void main(String[] args) {
        Person p1 = new Person();
        p1.name = "东尼大木";
        p1.eat();

        Student s1 = new Student();
        s1.name = "小泽";
        s1.eat();
        s1.show1();
        System.out.println(s1.getClass().getSuperclass());
        System.out.println(p1.getClass().getSuperclass());
    }
}
